package cn.pfz.domain;

import com.alibaba.druid.support.json.JSONUtils;
import lombok.*;

import java.util.HashMap;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SystemDictionary {
    private Long id;

    private String sn;

    private String title;

    private String intro;

    public String getjson(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("id",this.id);
        map.put("sn",this.sn);
        map.put("title",this.title);
        map.put("intro",this.intro);
        String s = JSONUtils.toJSONString(map);
        return s;
    }
}